//
//  ProjHUD.h
//  navi
//
//  Created by 意一yiyi on 2017/7/10.
//  Copyright © 2017年 意一yiyi. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, MBProgressHUDTextPosition) {
    
    MBProgressHUDTextPositionMiddle,
    MBProgressHUDTextPositionTop,
    MBProgressHUDTextPositionBottom
};

typedef NS_ENUM(NSInteger, MBProgressHUDProgressResult) {
    
    MBProgressHUDProgressResultSuccess,
    MBProgressHUDProgressResultFail
};

@interface ProjHUD : NSObject

#pragma mark - SystemHUD

+ (void)showSystemHUDOnView:(UIView *)view;
+ (void)hideSystemHUDOnView:(UIView *)view;


#pragma mark - MBProgressHUD

#pragma mark --- 显示文本, 自动隐藏
+ (void)showMBProgressHUDOnView:(UIView *)view withText:(NSString *)text atPosition:(MBProgressHUDTextPosition)position completionAfterAutohide:(void(^)())completion;

#pragma mark --- 显示图片和文本, 自动隐藏
+ (void)showMBProgressHUDOnView:(UIView *)view withImageName:(NSString *)imageName text:(NSString *)text completionAfterAutohide:(void(^)())completion;

#pragma mark --- 显示进度环, 自动隐藏
+ (void)showMBProgressHUDOnView:(UIView *)view withProgressPrompt:(NSString *)progressPrompt;
+ (void)updateMBProgressHUDOnView:(UIView *)view withProgress:(CGFloat)progress progressPrompt:(NSString *)progressPrompt;
+ (void)updateMBProgressHUDOnView:(UIView *)view withProgressResult:(MBProgressHUDProgressResult)progressResult progressPrompt:(NSString *)progressPrompt completionAfterAutohide:(void(^)())completion;

#pragma mark --- 显示 gif
+ (void)showMBProgressHUDOnView:(UIView *)view withGifName:(NSString *)gifName;
+ (void)showMBProgressHUDOnView:(UIView *)view withImageNameArray:(NSArray<NSString *> *)imageNameArray;

#pragma mark --- 隐藏 gif
+ (void)hideMBProgressHUDOnView:(UIView *)view;

@end
